package com.jeethink.erp.pileDetail.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jeethink.common.annotation.Excel;
import com.jeethink.common.core.domain.BaseEntity;

/**
 * 库存流水明细对象 tb_stock_pile_detail
 * 
 * @author ypr
 * @date 2021-05-28
 */
public class TbStockPileDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存流水明细id */
    private Long id;

    /** 库存表id */
    private Long stockPileId;

    /** 库存操作 */
    @Excel(name = "库存操作")
    private String inventoryOperation;

    /** 操作数量 */
    @Excel(name = "操作数量")
    private Long operationNum;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operationTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStockPileId(Long stockPileId) 
    {
        this.stockPileId = stockPileId;
    }

    public Long getStockPileId() 
    {
        return stockPileId;
    }
    public void setInventoryOperation(String inventoryOperation) 
    {
        this.inventoryOperation = inventoryOperation;
    }

    public String getInventoryOperation() 
    {
        return inventoryOperation;
    }
    public void setOperationNum(Long operationNum) 
    {
        this.operationNum = operationNum;
    }

    public Long getOperationNum() 
    {
        return operationNum;
    }
    public void setOperationTime(Date operationTime) 
    {
        this.operationTime = operationTime;
    }

    public Date getOperationTime() 
    {
        return operationTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stockPileId", getStockPileId())
            .append("inventoryOperation", getInventoryOperation())
            .append("operationNum", getOperationNum())
            .append("operationTime", getOperationTime())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
